<template>
  <div>
    <header class="header1" v-show="show">
      <p>
        <span>来自*****@999CX。com的红包</span>
      </p>
      <p>你抢到了5.39483904 USDT</p>
      <p>
        <van-button
          type="warning"
          color="rgb(249, 219, 149)"
          size="small"
          @click="show = false"
        >查看我的资产账户</van-button>
      </p>
      <p>下载APP参与更多活动，领取属于您自己的数字资产</p>
      <p class="text">99个红包共199USDT,2分钟被抢光</p>
    </header>
    <header class="header2" v-show="!show">
      <p>
        <span>来自*****@999CX。com的红包</span>
      </p>
      <p>您有机会获得</p>
      <p>
        <van-row gutter="10">
          <van-col span="17">
            <p class="input">
              <van-field v-model="value" label="+86" placeholder="请输入手机号" />
            </p>
          </van-col>
          <van-col span="7">
            <van-button
              type="info"
              size="small"
              color="rgb(130, 130, 254)"
              @click="show = true"
            >立即领取</van-button>
          </van-col>
        </van-row>
      </p>
      <p class="text">99个红包共199USDT,2分钟被抢光</p>
    </header>
    <main>
      <van-cell-group>
        <van-cell
          title="187****5861"
          value="5.39483904USDT"
          label="08-30 22:39 "
          v-for="item in 50"
        />
      </van-cell-group>
    </main>
  </div>
</template>

<script>
export default {
  name: "",

  data() {
    return {
      show: false,
      sms: ""
    };
  },

  methods: {}
};
</script>

<style lang="less" scoped>
.header1 {
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 150px;
  background: rgb(223, 93, 102);
  padding-top: 30px;
  font-size: 14px;
  color: #fff;
  > p {
    text-align: center;
    margin: 10px 0;
  }
  > p:nth-child(1) {
    width: 300px;
    height: 30px;
    margin: 0 auto;
    background: rgba(235, 238, 245, 0.5);
    line-height: 30px;

    border-radius: 15px;
  }
  > p:nth-child(3) {
    button {
      width: 300px;
      font-weight: 700;
      color: #000 !important;
    }
  }
  .text {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 12px;
    color: rgb(158, 165, 180);
    background: rgb(245, 245, 249);
    line-height: 20px;
    padding-left: 10px;
    text-align: left;
    margin: 0;
  }
}
.header2 {
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 150px;
  background: rgb(223, 93, 102);
  padding-top: 30px;
  font-size: 14px;
  color: #fff;
  > p {
    text-align: center;
    margin: 10px 0;
  }
  > p:nth-child(1) {
    width: 300px;
    height: 30px;
    margin: 0 auto;
    background: rgba(235, 238, 245, 0.5);
    line-height: 30px;

    border-radius: 15px;
  }
  > p:nth-child(3) {
    padding: 0 15px;
    .input {
      .van-field {
        border-radius: 4px;
        padding: 5px;
      }
    }
    button {
      width: 100px;
    }
  }
  .text {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 12px;
    color: rgb(158, 165, 180);
    background: rgb(245, 245, 249);
    line-height: 20px;
    padding-left: 10px;
    text-align: left;
    margin: 0;
  }
}
main {
  padding-top: 180px;
}
</style>
